@extends('app')
@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3" role="main">
            {!! Form::open(['url'=>'/user/register']) !!}
                    {!! csrf_field() !!}

            @if($errors->any())
                <ul class="list-group">
                    @foreach($errors->all() as $error)
                        <li class="list-group-item list-group-item-danger">{{ $error }}</li>
                    @endforeach
                </ul>
            @endif

            <!--- Name Field --->
            <div class="form-group">
                {!! Form::label('name', '用户名:') !!}
                {!! Form::text('name', null, ['class' => 'form-control']) !!}
            </div>
            <!--- Email Field --->
            <div class="form-group">
                {!! Form::label('email', 'Email:') !!}
                {!! Form::text('email', null, ['class' => 'form-control']) !!}
            </div>
            <!--- Password Field --->
            <div class="form-group">
                {!! Form::label('password', '密码:') !!}
                {!! Form::password('password', ['class' => 'form-control']) !!}
            </div>
            <!--- Password_confirmation Field --->
            <div class="form-group">
                {!! Form::label('password_confirmation', '确认密码:') !!}
                {!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
            </div>
            {!! Form::submit('马上注册',['class'=>'btn btn-success form-control']) !!}
            {!! Form::close() !!}
        </div>
    </div>
</div>
@stop